package cn.itcast.nems.studentrecord.dto;

import cn.itcast.nems.approval.service.ApprovalFormService;
import cn.itcast.nems.common.constant.OrderStateEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class StudentRecordJournalVo {
    private JournalClazzDirection clazzDirection;
    private ApprovalFormService.JournalType journalType;
    private String journalId;
    private String journalState;
    private String orderId;
    private String orderNo;
    private OrderStateEnum orderState;
    private String createdBy;
    private String createdByName;
    private String createdByAndName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime createdDatetime;
    private String formId;
    private String formState;
    private String journalExtendType;
}
